<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmMyprofile">
        <p:dialog header="My Profile" id="dlgMyProfile" widgetVar="wgMyProfile" draggable="true" showEffect="clip" hideEffect="clip" closable="true" >
            <f:view>
                <h1><h:outputText value="View"/></h1>
                <h:panelGrid id="pnMyprofile" columns="2">
                    <h:outputText value="Username:"/>
                    <h:outputText value="#{system.user.userName}" title="UserName"/>
                    <h:outputText value="Password:"/>
                    <h:outputText value="#{system.user.password}" title="Password"/>
                    <h:outputText value="Title:"/>
                    <h:outputText value="#{system.user.titleOfCourtesy}" title="TitleOfCourtesy"/>
                    <h:outputText value="Last Name:"/>
                    <h:outputText value="#{system.user.lastName}" title="LastName"/>
                    <h:outputText value="First Name:"/>
                    <h:outputText value="#{system.user.fristName}" title="FristName"/>
                    <h:outputText value="Address:"/>
                    <h:outputText value="#{system.user.address}" title="Address"/>
                    <h:outputText value="City:"/>
                    <h:outputText value="#{system.user.city}" title="City"/>
                    <h:outputText value="Region:"/>
                    <h:outputText value="#{system.user.region}" title="Region"/>
                    <h:outputText value="Postal Code:"/>
                    <h:outputText value="#{system.user.postalCode}" title="PostalCode"/>
                    <h:outputText value="Mobile Phone:"/>
                    <h:outputText value="#{system.user.mobilePhone}" title="MobilePhone"/>
                    <h:outputText value="Email:"/>
                    <h:outputText value="#{system.user.email}" title="Email"/>
                    <h:outputText value="Roles:"/>
                    <h:outputText value="#{system.user.roles.roleName}" title="Roles"/>
                    <h:outputText value="Job:" rendered="#{system.employee}"/>
                    <h:outputText value="#{system.user.job.jobTitle}" rendered="#{system.employee}"/>
                </h:panelGrid>
                <f:facet name="footer">
                    <p:commandButton id="btnChangeProfile"
                                     value="Change Profile"
                                     icon="ui-icon-check"
                                     style="margin:0"
                                     onclick="wgChangeProfile.show();"
                                     update=":frmChangeProfile:pdChangeProfile"
                                     />
                    <p:commandButton value="Close"
                                     onclick="wgMyProfile.hide();"
                                     icon="ui-icon-check"
                                     style="margin:0"/>
                </f:facet>
            </f:view>

        </p:dialog>
    </h:form>
</html>
